//index.js
//获取应用实例
const app = getApp()
var load = require('../../utils/ballLoading.js');

Page({
  data: {
    showBallDialog: true
  },

  onLoad: function () {

    //创建并返回绘图上下文context对象。
    this.ballLoad = load.initLoad('canvasArcCir', 50);
  },
  tab: function(){
    this.ballLoad.clearBallTimeout()
    // load.initLoad('canvasArcCir', 50);
  }

})